<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试历史</title>
    <style>
        /* 整体样式 */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        /* 导航栏样式 */
        nav {
            background-color: #2980b9;
            overflow: hidden;
        }

        nav a {
            float: left;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }

        nav a:hover {
            background-color: #1a5276;
            color: white;
        }

        /* 页头样式 */
        header {
            background-color: #2980b9;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        /* 主体样式 */
        main {
            display: flex;
            justify-content: space-around;
            margin: 40px 0;
        }

        /* 专栏样式 */
        .column {
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: 30%;
        }

        .column h2 {
            color: #2980b9;
            margin-top: 0;
        }

        .column ul {
            list-style-type: none;
            padding: 0;
        }

        .column li {
            border-bottom: 1px solid #f4f4f4;
            padding: 10px 0;
            cursor: pointer;
            color: #2980b9;
        }

        .column li:hover {
            background-color: #f9f9f9;
        }

        /* 页脚样式 */
        footer {
            background-color: #2980b9;
            color: #fff;
            padding: 10px;
            text-align: center;
        }
    </style>
    <script>
        function showDetails(type, id) {
            // 根据type和id跳转到相应的页面或弹出对话框显示详细信息
            switch (type) {
                case 'testcase':
                    window.location.href = 'test-case-details.html?id=' + id;
                    break;
                case 'bug':
                    window.location.href = 'bug-details.html?id=' + id;
                    break;
                case 'report':
                    showReportDialog(id);
                    break;
            }
        }

        function showReportDialog(id) {
            // 弹出对话框显示测试报告的详细信息
            alert('正在显示测试报告 ' + id + ' 的详细信息...');
        }
    </script>
</head>
<body>
<nav>
    <a href="#">用例管理</a>
    <a href="#">测试执行</a>
    <a href="#">测试结果</a>
    <a href="#">个人中心</a>
</nav>

<header>
    <h1>测试历史</h1>
</header>

<main>
    <div class="column">
        <h2>查看之前个人执行的测试用例</h2>
        <ul>
            <li onclick="showDetails('testcase', 1)">测试用例 1</li>
            <li onclick="showDetails('testcase', 2)">测试用例 2</li>
            <li onclick="showDetails('testcase', 3)">测试用例 3</li>
            <li onclick="showDetails('testcase', 4)">测试用例 4</li>
            <li onclick="showDetails('testcase', 5)">测试用例 5</li>
        </ul>
    </div>

    <div class="column">
        <h2>查看个人之前提交的bug</h2>
        <ul>
            <li onclick="showDetails('bug', 1)">bug 1</li>
            <li onclick="showDetails('bug', 2)">bug 2</li>
            <li onclick="showDetails('bug', 3)">bug 3</li>
            <li onclick="showDetails('bug', 4)">bug 4</li>
            <li onclick="showDetails('bug', 5)">bug 5</li>
        </ul>
    </div>

    <div class="column">
        <h2>查看个人之前执行的测试报告</h2>
        <ul>
            <li onclick="showDetails('report', 1)">测试报告 1</li>
            <li onclick="showDetails('report', 2)">测试报告 2</li>
            <li onclick="showDetails('report', 3)">测试报告 3</li>
            <li onclick="showDetails('report', 4)">测试报告 4</li>
            <li onclick="showDetails('report', 5)">测试报告 5</li>
        </ul>
    </div>
</main>

<footer>
    <p>&copy; 2024 测试历史. All rights reserved.</p>
</footer>
</body>
</html>